<?php
use Illuminate\Database\Eloquent\SoftDeletingTrait;

class MainCategoryCategory extends Eloquent {

	use SoftDeletingTrait;
	
	protected $dates = ['deleted_at'];
		
	protected $table = 'main_category_category';
	
	/**
	  * Relates to Category.
	 * @author AngelaMisa 03/11/2015 6:25AM
	 * @return mixed
	 */
	public function category() {
		return $this->belongsTo('Category', 'CATEGORY_id');
	}
	 
	/**
	 * Relates to Main Category.
	 * @author AngelaMisa 03/11/2015 6:25AM
	 * @return mixed
	 */
	public function mainCategory() {
		return $this->belongsTo('MainCategory', 'MAIN_CATEGORY_id');
	}
}